package com.kpx.app.bean;

import java.io.Serializable;

/**
 * User: 陈聪(617909447@qq.com)
 * Date: 2016-06-24
 * Time: 15:11
 * 选择地址bean
 */
public class AddressBean implements Serializable {

    private boolean isOut = false;
    /** ID */
    private long dmId;
    /** 所属用户ID */
    private long userId;
    /** 状态 0有效 1无效 */
    private int status;
    /** 性别 0女 1男 */
    private int sex;
    /** 手机号码 */
    private String phone;
    /** 姓名 */
    private String receiver;
    private String region;
    /** 详细地址 */
    private String address;
    private String outMsg;
    private String pno;
    /** 是否为默认地址 */
    private int isDefault;
    public double latitude = 0;//纬度
    public double longitude = 0;//经度
    private Loction loc;

    public Loction getLoc() {
        return loc;
    }

    public void setLoc(Loction loc) {
        this.loc = loc;
    }

    class Loction implements Serializable {
        public double lat = 39.92;//纬度
        public double lon = 116.46;//经度

        public double getLat() {
            return lat;
        }

        public void setLat(double lat) {
            this.lat = lat;
            AddressBean.this.latitude = lat;
        }

        public double getLon() {
            return lon;
        }

        public void setLon(double lon) {
            this.lon = lat;
            AddressBean.this.longitude = lon;
        }
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getOutMsg() {
        return outMsg;
    }

    public void setOutMsg(String outMsg) {
        this.outMsg = outMsg;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public long getDmId() {
        return dmId;
    }

    public void setDmId(long dmId) {
        this.dmId = dmId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public boolean isOut() {
        return isOut;
    }

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }

    public void setIsOut(boolean isOut) {
        this.isOut = isOut;
    }
}
